﻿using System.ComponentModel;
/// <summary>
/// 常量
/// </summary>
public class Constant {

    public const string ATTACK = "attack";
    public const string DEFENSE = "defense";
    public const string VERTIGO = "vertigo";
    public const string VERTIGO_CHANCE = "vertigoChance";
    public const string VERTIGO_RESIST_CHANCE = "vertigoResistChance";
    public const string COMA = "coma";
    public const string COMA_CHANCE = "comaChance";
    public const string COMA_RESIST_CHANCE = "comaResistChance";
    public const string POISON = "poison";
    public const string POISON_CHANCE = "poisonChance";
    public const string POISON_RESIST_CHANCE = "poisonResistChance";
    /// <summary>
    /// 物品增加属性的颜色
    /// </summary>
    public const string ArticlePlusPropColor = "#79FF79FF";
    /// <summary>
    /// 物品减少属性的颜色
    /// </summary>
    public const string ArticleMinusPropColor = "#FF5151FF";
    /// <summary>
    /// 物品需求条件满足的颜色
    /// </summary>
    public const string ArticleMeetConditionsColor = "#FF9797FF";
    /// <summary>
    /// 物品需求条件不满足的颜色
    /// </summary>
    public const string ArticleNotMeetConditionsColor = "#CE0000FF";
    public const string ArticlePriceColor = "#F9F900FF";

    public static int[] ExpLimit = { 100, 500, 1000, 5000, 10000, 50000, 100000, 500000 };
    public static string[] ARTICLE_QUALITY_COLOR = { "#FF5151FF", "white", "#2828FFFF", "#28FF28FF", "#E800E8FF", "#FFDC35FF" };

    /// <summary>
    /// 同时攻击与防御的效果比例
    /// </summary>
    public const float ATT_AND_DEF_RATIO = 0.7f;
    /// <summary>
    /// 轻伤状态发挥效果比例
    /// </summary>
    public const float HP_SLIGHT_WOUND_RATIO = 0.8f;
    /// <summary>
    /// 重伤状态发挥效果比例
    /// </summary>
    public const float HP_SEVERE_WOUND_RATIO = 0.5f;
    /// <summary>
    /// 战斗时自身身法效果比例
    /// </summary>
    public const float FightSelfSpeedRatio = 0.3f;
    /// <summary>
    /// 战斗时武学速度效果比例
    /// </summary>
    public const float FightWuxueSpeedRatio = 0.7f;
    /// <summary>
    /// 战斗时使用物品的速度
    /// </summary>
    public const int FightUseArticleSpeed = 20;
    /// <summary>
    /// 战斗时御毒的速度
    /// </summary>
    public const int FightResistPoisonSpeed = 20;
    /// <summary>
    /// 战斗时逃跑的速度
    /// </summary>
    public const int FightEscapeSpeed = 50;

    /// <summary>
    /// 战斗行为
    /// </summary>
    public enum FightActionCategory {
        /// <summary>
        /// 攻击
        /// </summary>
        [Description("攻击")]
        Attack,
        /// <summary>
        /// 御毒
        /// </summary>
        [Description("御毒")]
        ResistPoison,
        /// <summary>
        /// 使用物品
        /// </summary>
        [Description("使用物品")]
        UseArticle,
        /// <summary>
        /// 休息
        /// </summary>
        [Description("休息")]
        Rest,
        /// <summary>
        /// 逃跑
        /// </summary>
        [Description("逃跑")]
        Escape
    }

    /// <summary>
    /// 攻击范围
    /// </summary>
    public enum AttackRange {
        /// <summary>
        /// 单人
        /// </summary>
        [Description("单人")]
        Single,
        /// <summary>
        /// 所有人
        /// </summary>
        [Description("所有人")]
        All
    }

    /// <summary>
    /// 人物性别
    /// </summary>
    public enum Gender {
        /// <summary>
        /// 男
        /// </summary>
        [Description("男")]
        Male,
        /// <summary>
        /// 女
        /// </summary>
        [Description("女")]
        Female,
        /// <summary>
        /// 其他
        /// </summary>
        [Description("其他")]
        Other
    }

    /// <summary>
    /// 人物部位
    /// </summary>
    public enum PersonagePart {
        /// <summary>
        /// 上盘
        /// </summary>
        [Description("上盘")]
        Top,
        /// <summary>
        /// 中盘
        /// </summary>
        [Description("中盘")]
        Middle,
        /// <summary>
        /// 下盘
        /// </summary>
        [Description("下盘")]
        Bottom,
        /// <summary>
        /// 全身
        /// </summary>
        [Description("全身")]
        All
    }

    /// <summary>
    /// 人物运气
    /// </summary>
    public enum PersonageLuck {
        /// <summary>
        /// 上上
        /// </summary>
        [Description("上上")]
        TopTop,
        /// <summary>
        /// 上
        /// </summary>
        [Description("上")]
        Top,
        /// <summary>
        /// 中
        /// </summary>
        [Description("中")]
        Middle,
        /// <summary>
        /// 下
        /// </summary>
        [Description("下")]
        Bottom,
        /// <summary>
        /// 下下
        /// </summary>
        [Description("下下")]
        BottomBottom
    }

    /// <summary>
    /// 生命状态
    /// </summary>
    public enum HpStatus {
        /// <summary>
        /// 正常
        /// </summary>
        [Description("正常")]
        Normal,
        /// <summary>
        /// 轻伤
        /// </summary>
        [Description("轻伤")]
        SlightWound,
        /// <summary>
        /// 重伤
        /// </summary>
        [Description("重伤")]
        SeriousInjury,
        /// <summary>
        /// 濒死
        /// </summary>
        [Description("濒死")]
        Dying,
        /// <summary>
        /// 死亡
        /// </summary>
        [Description("死亡")]
        Death
    }

    /// <summary>
    /// 效果状态
    /// </summary>
    public enum EffectStatus {
        /// <summary>
        /// 眩晕
        /// </summary>
        [Description("眩晕")]
        Vertigo,
        /// <summary>
        /// 昏迷
        /// </summary>
        [Description("昏迷")]
        Coma,
        /// <summary>
        /// 中毒
        /// </summary>
        [Description("中毒")]
        Poisoning
    }

    /// <summary>
    /// 行为分类
    /// </summary>
    public enum ActionCategory {
        /// <summary>
        /// 攻击
        /// </summary>
        [Description("攻击")]
        Attack,
        /// <summary>
        /// 防御
        /// </summary>
        [Description("防御")]
        Defense
    }

    /// <summary>
    /// 武学种类
    /// </summary>
    public enum WuxueCategory {
        /// <summary>
        /// 拳掌
        /// </summary>
        [Description("拳掌")]
        Fist,
        /// <summary>
        /// 腿法
        /// </summary>
        [Description("腿法")]
        Leg,
        /// <summary>
        /// 剑法
        /// </summary>
        [Description("剑法")]
        Sword,
        /// <summary>
        /// 刀法
        /// </summary>
        [Description("刀法")]
        Knife,
        /// <summary>
        /// 棍法
        /// </summary>
        [Description("棍法")]
        Stick,
        /// <summary>
        /// 轻功
        /// </summary>
        [Description("轻功")]
        Speed,
        /// <summary>
        /// 内功
        /// </summary>
        [Description("内功")]
        InternalWork
    }

    /// <summary>
    /// 需求种类
    /// </summary>
    public enum RequireCategory {
        /// <summary>
        /// 生命
        /// </summary>
        [Description("生命")]
        Hp,
        /// <summary>
        /// 内力
        /// </summary>
        [Description("内力")]
        Mp,

        /// <summary>
        /// 攻击
        /// </summary>
        [Description("攻击")]
        Attack,
        /// <summary>
        /// 防御
        /// </summary>
        [Description("防御")]
        Defense,

        /// <summary>
        /// 拳掌
        /// </summary>
        [Description("拳掌")]
        Fist,
        /// <summary>
        /// 腿法
        /// </summary>
        [Description("腿法")]
        Leg,
        /// <summary>
        /// 剑法
        /// </summary>
        [Description("剑法")]
        Sword,
        /// <summary>
        /// 刀法
        /// </summary>
        [Description("刀法")]
        Knife,
        /// <summary>
        /// 棍法
        /// </summary>
        [Description("棍法")]
        Stick,
        /// <summary>
        /// 毒术
        /// </summary>
        [Description("毒术")]
        Poison,
        /// <summary>
        /// 医术
        /// </summary>
        [Description("医术")]
        Leechcraft,

        /// <summary>
        /// 力量
        /// </summary>
        [Description("力量")]
        Power,
        /// <summary>
        /// 身法
        /// </summary>
        [Description("身法")]
        Speed,
        /// <summary>
        /// 根骨
        /// </summary>
        [Description("根骨")]
        Physique,
        /// <summary>
        /// 悟性
        /// </summary>
        [Description("悟性")]
        Savvy,
        /// <summary>
        /// 坚韧
        /// </summary>
        [Description("坚韧")]
        Tenacity
    }

    /// <summary>
    /// 比较种类
    /// </summary>
    public enum CompareCategory {
        /// <summary>
        /// 小于
        /// </summary>
        [Description("＜")]
        Lt,
        /// <summary>
        /// 小于等于
        /// </summary>
        [Description("≤")]
        Lte,
        /// <summary>
        /// 等于
        /// </summary>
        [Description("=")]
        Eq,
        /// <summary>
        /// 大于
        /// </summary>
        [Description("＞")]
        Gt,
        /// <summary>
        /// 大于等于
        /// </summary>
        [Description("≥")]
        Gte
    }

    /// <summary>
    /// 攻击偏好
    /// </summary>
    public enum AttackPreference {
        /// <summary>
        /// 漂亮的
        /// </summary>
        [Description("漂亮的")]
        Beautiful,
        /// <summary>
        /// 丑陋的
        /// </summary>
        [Description("丑陋的")]
        Ugly,
        /// <summary>
        /// 随机的
        /// </summary>
        [Description("随机的")]
        Random
    }

    /// <summary>
    /// 物品类型
    /// </summary>
    public enum ArticleCategory {
        /// <summary>
        /// 任何东西
        /// </summary>
        [Description("任何东西")]
        Anything,
        /// <summary>
        /// 帽子
        /// </summary>
        [Description("帽子")]
        Cap,
        /// <summary>
        /// 项链
        /// </summary>
        [Description("项链")]
        Necklace,
        /// <summary>
        /// 戒指
        /// </summary>
        [Description("戒指")]
        Ring,
        /// <summary>
        /// 武器
        /// </summary>
        [Description("武器")]
        Weapon,
        /// <summary>
        /// 护甲
        /// </summary>
        [Description("护甲")]
        Armor,
        /// <summary>
        /// 鞋子
        /// </summary>
        [Description("鞋子")]
        Shoes,
        /// <summary>
        /// 药品
        /// </summary>
        [Description("药品")]
        Drug,
        /// <summary>
        /// 营养品
        /// </summary>
        [Description("营养品")]
        Nutriment,
        /// <summary>
        /// 任务物品
        /// </summary>
        [Description("任务物品")]
        QuestItem,
        /// <summary>
        /// 武学秘籍
        /// </summary>
        [Description("武学秘籍")]
        WuxueEsoterica
    }
    
    /// <summary>
    /// 物品品质
    /// </summary>
    public enum ArticleQuality {
        /// <summary>
        /// 破损的
        /// </summary>
        [Description("破损的")]
        Damaged,
        /// <summary>
        /// 普通的
        /// </summary>
        [Description("普通的")]
        Ordinary,
        /// <summary>
        /// 精致的
        /// </summary>
        [Description("精致的")]
        Exquisite,
        /// <summary>
        /// 奇异的
        /// </summary>
        [Description("奇异的")]
        Singular,
        /// <summary>
        /// 史诗的
        /// </summary>
        [Description("史诗的")]
        Epic,
        /// <summary>
        /// 传说的
        /// </summary>
        [Description("传说的")]
        Legendary
    }
}
